<{assign var="page_title" value='欢迎登陆'}>
<{ include file="FASHION/pure_header.phtml" }>

<form method="post" id="form1">
  <center>
    <div style="width:780px;height:390px;margin-top:50px;background:url() top left no-repeat;">
      <div style="height:200px;"></div>
      <table width="400" align="center" class="logintab">
        <tr>
          <td width="80">用户名: </td>
          <td><input type="text" class="inputxt w200" name="username" maxlen="50" value="<{$smarty.get.u}>" /></td>
          <td width=120 valign="bottom">&nbsp;</td>
        </tr>
        <tr>
          <td>密　码: </td>
          <td><input type="password" name="password" class="inputxt w200" /></td>
          <td width=120 valign="bottom">&nbsp;</td>
        </tr>
        <tr>
          <td>验证码: </td>
          <td valign="top" nowrap><a class="fimg" href='javascript:void(0);'><img id='proof' src="<{ url a='pub-proof' }>" height="24" width="116" /></a>
            <input type="text" name="va" class="inputxt w80" /><br />请点击图片更换验证码</td>
          <td width=120 valign="bottom"><input type="submit" value=" 登陆 &#8250;" class="w80 submit" /></td>
        </tr>
      </table>
    </div>
  </center>
</form>
<script>
ajax_form({id:'form1', failure:function(){ $("#proof").attr("src","<{ url a='pub-proof' }>/"+(new Date()).valueOf()); }});
$(function(){ 
    $('input[name=username]').focus(); 
    $('.fimg').click(function(){var imgsrc = "\<{ url a='pub-proof' }>\/"+(new Date()).valueOf();$(".fimg").html("<img id=\"proof\" src=\""+imgsrc+"\" height=\"24\" width=\"116\" \/>");});
});
</script>
<{ include file="FASHION/pure_footer.phtml" }>
<!--<{ $msg }>-->
